kfraser@localhost.localdomain [Fri, 29 Sep 2006 08:29:20 +0000 (09:29 +0100)]
[NET] back: Reset netfilter context in loopback receive path.
The issue is described in bugzilla report #746.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 08:23:18 +0000 (09:23 +0100)]
[BLK] front: Flush workqueues with no locks held. Operation can sleep.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 08:14:28 +0000 (09:14 +0100)]
[XENBUS] Don't perform normal state-machine transitions and
notifications during shutdown. When rootfs goes away this can
cause the system to hang, as we notify userspace etc.
Instead we forcibly reset the state machine back to state Closed
if we are a frontend driver, to get the backend to release
resources. Necessary if we are going to kexec.
Signed-off-by: Keir Fraser <keir@xensource.com>
Andrew Warfield [Thu, 28 Sep 2006 20:44:00 +0000 (13:44 -0700)]
[BLKTAP] have udev create the device for blktap
This patch makes blktap Do The Right Thing(TM). It allows udev to
create the /dev/xen/blktap[0-9] devices.
It creates a sysfs class called "xen". This part may later be placed
someplace else, but currently blktap is the only user so it is placed in
the blktap code.
When blktap is initialized, a blktap0 sysfs class device is made. The
other devices blktapX (X > 0) are made when the BLKTAP_IOCTL_NEWINTF
ioctl is called. This way we don't flood the sysfs and /dev/xen with
unnecessary devices.
I added a rule in the xen-backend.rules to allow for udev to create the
blktap devices.
With this, we can really remove the code to search and create the
/dev/xen/blktap[0-9]*, but I'll leave it in for now. With the use of
udev, we really should remove that code as well as the code for creating
the evtchn device. udev works for both of these now. But that removal
will have to be in another patch.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 19:47:45 +0000 (12:47 -0700)]
[BLKTAP] have blktap use a dynamic major
blktap currently uses a hardcoded major of 254 for the device. This is
not robust in anyway and needs to be dynamic.
Note: it is better not to have the daemon create the node, and have udev
create it instead. But since the daemon currently creates the node
anyway, it is still the way this is done. That change needs to be made
at another time.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 19:12:59 +0000 (12:12 -0700)]
[BLKTAP][XEND] Fix blktap to work with a bootloader
If a Xen guest has a bootloader configured, then it will fail to start
on a blktap image. The problem is blkdev_uname_to_file, which cannot
parse the "tap:aio:$filename" image strings: it tries to split the
string apart at ":" and assign the result to a 2-tuple, and this
results in a python error if the split results in three or more
strings.
The fix is to split only at the first ":", and then to split again
if we detect "tap:" as the image type.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 19:03:01 +0000 (12:03 -0700)]
[BLKTAP] Fix SMP debugging assert failures in blktap
blktap is calling non-atomic kernel functions with irqs disabled, which
hits various kernel debug traps if those are enabled. The problem is
req_increase(), which takes the pending_free_lock.
This function is currently only ever called from module initialiation,
where it is impossible for it to race against anything else. Its
companion, req_decrease(), is not called at all.
Fix by removing the offending locking from req_increase() and, while
we're at it, remove req_decrease() entirely.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 18:52:17 +0000 (11:52 -0700)]
[BLKTAP] clean up blktap and remove private structure
This patch cleans up the blktap.c code to make it form to the Linux
coding style a little better.
It also removes the private data structure that is only used to store
the index of the tabfds descriptor. Instead the filp->private_data now
points to the descriptor itself.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 18:41:23 +0000 (11:41 -0700)]
[BLKTAP] Fix blktap oops on domain shutdown
When a domain shuts down with a blktap-backed block device open, it can
easily cause a dom0 oops. The XenbusStateClosing event can occur while
the tapdisk userland thread is still processing IO requests (eg.
readaheads) from the domU. But the xenbus state handler calls
tap_blkif_unmap(), unmapping the blkif->blk_ring.sring rin buffer, so
when the tapdisk thread next calls the BLKTAP_IOCTL_KICK_FE to return
the completion event to the FE via that ring buffer, it oopses.
This can be fixed simply by not calling tap_blkif_unmap() in this case;
the ring buffer will still be unmapped later on when the blkif is
destroyed by blktap_remove(), only then it will properly wait for the
blkif refcnt to reach zero before doing so.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
Tim Deegan [Thu, 28 Sep 2006 16:10:54 +0000 (17:10 +0100)]
[XEN] Support lightweight shadow-translate PV guests, for paravirt-ops.
This is a modified subset of Michael Fetterman's shadow-translate work.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 28 Sep 2006 16:09:11 +0000 (17:09 +0100)]
[XEN] Fix interaction between tlbflush timestamp and shadow flags
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 12:45:49 +0000 (13:45 +0100)]
[NET] back: 4 loopbacks by default for dom0 (previously was 8).
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 12:44:24 +0000 (13:44 +0100)]
[XEN] Remove weak-extern definitions from symbols.c.
Instead we have an explicit set of dummy symbol
definitions for the inital link of the Xen image.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 12:20:58 +0000 (13:20 +0100)]
[NET] back: Create 0 loopbacks by default for non-domain-0.
Signed-off-by: Keir Fraser <keir@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:46:09 +0000 (12:46 +0100)]
[XM] Report proper ACMError(s) instead of silently exiting.
Remove try except blocks so that ACMError(s) are properly reported to
the user rather than silently fail.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:29:52 +0000 (12:29 +0100)]
[XM] Remove traceback printing from load/makepolicy.py.
Should pass the exception along to xm/main.py to handle properly like
the rest of the commands.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:23:21 +0000 (12:23 +0100)]
[XM] Fix stray quotes in usage message in getlabel.py
Fixed built-in function name conflict.
Raise correct exceptions for when option is invalid to be properly
reported by xm.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:16:11 +0000 (12:16 +0100)]
[XM] Fix error reporting for resources.py, remove duplicate try block.
Also fixed usage message to not include misspelling of the command.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 10:50:51 +0000 (11:50 +0100)]
[XM] Removed traceback printing for non ACMError exceptions
Removing try,except block as cfgbootpolicy should allow exceptions to
propagate instead of printing traceback to stdout.
(http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=778)
Changed usage of string.join, string.split when creating security
policy path name.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:03:10 +0000 (12:03 +0100)]
[XM] Set proper return code for exceptions in xm, catch ACMError.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 10:47:33 +0000 (11:47 +0100)]
[XEN] Fix i386 hypercall code to always create shadow
parameters. Arguments on stack can be clobbered by
callee, since it owns them. But we require this doesn't
happen when we create hypercall continuations. Hence the
need to copy.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 10:25:15 +0000 (11:25 +0100)]
[HVM] Avoid mis-optimisation of the SVM/VMX exit handlers
by passing a *pointer* to the register state, instead of
'passing by value'.
This should fix the bugs resulting in display of
"trying to set reserved bit in EFER"
on the Xen console.
Signed-off-by: Keir Fraser <keir@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 09:10:59 +0000 (10:10 +0100)]
There's a typo in create.py, which affects PV bootloaders (such as
domUloader and probably pygrub). Patch attached.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 16:49:22 +0000 (17:49 +0100)]
[VMXASSIST] Cast to pointer type via long to avoid compile
warnings/errors with latest gcc versions.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Wed, 27 Sep 2006 15:22:17 +0000 (16:22 +0100)]
[HVM] qemu should wait 10ms, rather than 100ms, between running its timers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:30:36 +0000 (14:30 +0100)]
[XM-TEST] Remove the test for /dev/tpm0, which may be a prerequisite to start
the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:28:26 +0000 (14:28 +0100)]
[XEN] gdbstub return value is used to determine whether or not
to continue execution.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:01:30 +0000 (14:01 +0100)]
[XM] Fix 'xm uptime' command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:00:33 +0000 (14:00 +0100)]
[XM] Fix domain reported by 'xm sched-sedf'.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 12:59:48 +0000 (13:59 +0100)]
[XM] Fix 'xm rmlabel' command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 12:58:46 +0000 (13:58 +0100)]
[XM] Reenable the '-h' option, disabled in changeset:11572.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 12:54:04 +0000 (13:54 +0100)]
[HVM] Fix stupid printf formatting error that breaks x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 09:17:03 +0000 (10:17 +0100)]
[HVM] Fix MSR read/write and add extra info when
write to MSR_EFER fails.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 08:29:46 +0000 (09:29 +0100)]
[XEN] Fix x86_emulate and hvm-mmio-insn-len decoders
to properly add cs<<4 to eip only when guest is in real
mode (or vm86 mode).
Remove bogus test-and-fail from hvm-mmio-insn-len decoder.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Tue, 26 Sep 2006 18:50:07 +0000 (19:50 +0100)]
[HVM][VNC] Fix typo.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Tue, 26 Sep 2006 15:47:35 +0000 (16:47 +0100)]
[HVM][VNC] Work around a bug in the newest version of xvncviewer which
could lead to the display locking up after it's been idle for a while.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Tue, 26 Sep 2006 15:46:47 +0000 (16:46 +0100)]
[HVM][VNC] Make sure that qemu doesn't go into an infinite loop when
it receives certain invalid requests from the viewer.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Tue, 26 Sep 2006 15:45:52 +0000 (16:45 +0100)]
[HVM] Make qemu_advance_timer do something sensible with timers which
aren't currently scheduled.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Tue, 26 Sep 2006 13:01:38 +0000 (14:01 +0100)]
[HVM] Fix HLT with interrupts disabled. Only take down
the domain if no other VCPUs are online.
Signed-off-by: Keir Fraser <keir@xensource.com>
Emmanuel Ackaouy [Tue, 26 Sep 2006 11:17:51 +0000 (12:17 +0100)]
Adds support for the keyword 'all' to the vcpu-pin operation.
Using 'all' in place of a specific vcpu will apply the cpumask
to all vcpus in the domain.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Sep 2006 07:36:39 +0000 (08:36 +0100)]
[VMXASSIST] Small fix to virt-to-phys translation.
CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Sep 2006 07:34:52 +0000 (08:34 +0100)]
Remove static forward declaration in gdbstub code.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 17:19:30 +0000 (18:19 +0100)]
[VMXASSIST] Fix virt-to-phys translation routine.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 16:46:08 +0000 (17:46 +0100)]
[XEN] Simplify VMCS allocation (never bigger than a page).
Dynamically determine reserved bits in execution-control
fields.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 16:45:28 +0000 (17:45 +0100)]
[XEN] Small clean up.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Mon, 25 Sep 2006 16:27:18 +0000 (17:27 +0100)]
[HVM] Rate limit guest accesses to the qemu virtual serial port. This stops
grub's boot menu from hammering dom0.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Emmanuel Ackaouy [Mon, 25 Sep 2006 15:31:02 +0000 (16:31 +0100)]
Make dom0_vcpus_pin a platform independant option.
By default, it's off. When enabled on the command line, it
causes dom0's VCPUs to be pinned to their respective physical
CPUs at creation time. Once pinned, they can never be moved.
ALso cleanup VCPU initialization of scheduler parameters.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 13:11:22 +0000 (14:11 +0100)]
[XEN] Fix 11607 to avoid bignum aritmetic in assembly file.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 09:22:17 +0000 (10:22 +0100)]
[HVM] Use AMD's isntruction-length decoder for VMX as well as SVM
MMIO decode. The VMX-defined instruction-length info field is not
valid for use during most page faults. Hence we have to obtain the
instruction length the slow-and-stupid way.
This *will* go away when we throw away the wretched MMIO emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 08:36:11 +0000 (09:36 +0100)]
Consolidate the preferable use of a pragma with the feature detection
in the make script.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 08:31:11 +0000 (09:31 +0100)]
[XEN] Limit size of Xen heap to 2GB.
Avoids stub code created on the stack being unable to
reach targets in main Xen code via direct branches.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 08:29:28 +0000 (09:29 +0100)]
[XEN] Use symbolic constants to determine segment limits.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Steven Smith [Mon, 25 Sep 2006 08:27:46 +0000 (09:27 +0100)]
Merge.
Steven Smith [Mon, 25 Sep 2006 08:26:51 +0000 (09:26 +0100)]
[XEN][HVM] Initialise the ELCR to level triggered mode from pic_init1.
This should really be done from the BIOS, but since it isn't, work around
it from here.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 08:11:52 +0000 (09:11 +0100)]
[TOOLS] Wait for backend devices to set up before resuming execution
of a restored guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 24 Sep 2006 09:14:17 +0000 (10:14 +0100)]
[XEN] Support unconnected IRQ lines in pirq_acktype().
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 24 Sep 2006 09:07:18 +0000 (10:07 +0100)]
[XEN] Add local-APIC-edge to list of PIC types supported by pirq_acktype()
function.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 15:23:11 +0000 (16:23 +0100)]
[QEMU] A better build fix for qemu-dm.
This extends 11592:
5c58df8c78851d47bf7130308895c4e0ac5fa5ad
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:54:58 +0000 (14:54 +0100)]
Ensure CONFIG_SND_FM801_TEA575X is unconfigured on all arches.
Signed-off-by: Al Stone <ahs3@fc.hp.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:52:04 +0000 (14:52 +0100)]
Fix tools build with latest glibc, which has an
extended PTRACE enumeration.
Original patch from Stephen Tweedie <sct@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:47:00 +0000 (14:47 +0100)]
Use GDB 'O' packets for console output if the serial line is shared
and GDB is attached.
It may be necessary for gdb and the console to share a serial port.
This patch utilises the GDB protocol to encode console output.
Based on a patch from Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:07:41 +0000 (14:07 +0100)]
Move initialize_keytable declaration to keyhandler.h
Signed-off-by: Aron Griffis <aron@hp.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:07:30 +0000 (14:07 +0100)]
Clean up and enhance "make tags"
- delete correct file in _tags rule
- don't prune nonexistent files/dirs
- call exuberant-ctags with additional flags from Linux:
-I to ignore some misleading hits
--extra=+f to include an entry for the basename of every file
--c-kinds=+px to add prototypes and external variable declarations
Signed-off-by: Aron Griffis <aron@hp.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:04:22 +0000 (14:04 +0100)]
[HVM] Fix timer interrupt underflow bug.
Without the patch, vlapic->intr_pending_count could become a very
small negative, causing some local APIC timer interrupts lost.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:01:53 +0000 (14:01 +0100)]
Update vnet kernel module to handle architectures without
socketcall(), for example Itanium, and some small changes
to be compatible with changed kernel interfaces.
Signed-off-by: Mike Wray <mike.wray@hp.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:00:38 +0000 (14:00 +0100)]
[MINIOS] Added a new file arc/x86/setup.c and moved some x86 specific
initialization stuff from kernel.c there. Two new functions are added
to handle this.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
kfraser@localhost.localdomain [Sat, 23 Sep 2006 12:57:55 +0000 (13:57 +0100)]
[QEMU] Fix build on some distros (e.g., FC6T3).
Signed-off-by: Keir Fraser <keir@xensource.com>
atse@norwich.uk.xensource.com [Sat, 23 Sep 2006 12:39:32 +0000 (13:39 +0100)]
[XM] Fix argument parsing for dump-core subcommand
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Alastair Tse <atse@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 23 Sep 2006 11:39:18 +0000 (12:39 +0100)]
[HVM] A few cleanups to i8259.c -- in particular change
ELCR semantics (should not be modified by PIC reset).
This effectively removes Steve Smith's changeset
11586:
08a582a98471da30fb86bca620495f3d91d55800
but the real bug here is not that the ELCR was reset to
zero, but that it was touched at all.
Our BIOS code should set the ELCR correctly (level-triggered)
for PCI IRQs.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Fri, 22 Sep 2006 19:20:57 +0000 (20:20 +0100)]
[HVM][VNC] Make sure that the vnc viewer gets the right resolution when it
connects.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Fri, 22 Sep 2006 16:59:02 +0000 (17:59 +0100)]
Merge.
atse@norwich.uk.xensource.com [Fri, 22 Sep 2006 16:46:32 +0000 (17:46 +0100)]
[XM][ACM] Add try,catch back to main() for dry-run
Signed-off-by: Alastair Tse <atse@xensource.com>
Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
Steven Smith [Fri, 22 Sep 2006 16:22:18 +0000 (17:22 +0100)]
Merge.
Steven Smith [Fri, 22 Sep 2006 16:21:52 +0000 (17:21 +0100)]
[XEN][HVM] Initialise the ELCR so that all interrupts are in level triggered
mode after pic_reset, since that seems to be what Linux expects.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
atse@norwich.uk.xensource.com [Fri, 22 Sep 2006 15:32:30 +0000 (16:32 +0100)]
[XM] Move 'xm sysrq' into main.py
* There's not need for sysrq to be in its own file.
* Bonus advantage: can use arg_check rather than gopts for argument
validation.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Fri, 22 Sep 2006 15:20:36 +0000 (16:20 +0100)]
[XEND] Do not attempt core dump to directories.
- Abort core dump if destination is a directory.
- Throw appropriate XendError expection on failure.
Reported by Masaki Kanno <kanno.masaki@jp.fujitsu.com>.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Fri, 22 Sep 2006 14:56:19 +0000 (15:56 +0100)]
[XEND] Remove hard tabs from destroyDevice()
Reported by Hollis Blanchard.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Fri, 22 Sep 2006 14:36:11 +0000 (15:36 +0100)]
[XEND] Check for invalid memory sizes.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
atse@norwich.uk.xensource.com [Fri, 22 Sep 2006 14:06:00 +0000 (15:06 +0100)]
[XM] Text wrapping fix, xm create --help_config fix.
* Fix text wrap so it doesn't chop off last word in help message for
certain cases.
* Fix handling of xm create --help_config
* Remove redundant gopts.usage() call.
Signed-off-by: Alastair Tse <atse@xensource.com>
Steven Hand [Fri, 22 Sep 2006 13:57:19 +0000 (14:57 +0100)]
Add mmio emulation of opcodes 0x3A and 0x85 for SMP W2K3 installation.
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Fri, 22 Sep 2006 13:55:11 +0000 (14:55 +0100)]
Revert default debug on cset 11576:
4a3d9fa6ba24.
Signed-off-by: Steven Hand <steven@xensource.com>
kfraser@localhost.localdomain [Fri, 22 Sep 2006 12:06:20 +0000 (13:06 +0100)]
merge
kfraser@localhost.localdomain [Fri, 22 Sep 2006 12:06:05 +0000 (13:06 +0100)]
merge
kfraser@localhost.localdomain [Fri, 22 Sep 2006 12:05:40 +0000 (13:05 +0100)]
[XEN][ Remove unused declarations.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Hand [Fri, 22 Sep 2006 11:27:28 +0000 (12:27 +0100)]
This patch fixes an error booting 32bit vista on VMX.
The shadow code uses hvm_get_guest_ctrl_reg(v, 4) to test whether
PAE is enabled or not. But it is not always right if the hypervisor
calls hvm_get_guest_ctrl_reg(v, 4) between vmxassist_invoke and
vmxassist_restore
The patch uses the d->arch.hvm_vmx.cpu_state to test if the PAE is
enabled.
Also update SVM code to use the new 'pae_enabled' hvm func.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Fri, 22 Sep 2006 11:14:22 +0000 (12:14 +0100)]
Fix vmxassist to boot Vista.
Currently, guest_linear_to_real to_real() in vmxassist assumes guest HVM
use 2 level page table when entering protect mode with PG enabled. Vista
uses 3 level (PAE enabled) page table, so memory addressing is wrong.
This patch fixes it, by considering all 4 possible cases.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
atse@norwich.uk.xensource.com [Fri, 22 Sep 2006 10:37:31 +0000 (11:37 +0100)]
[XM] Error handling cleanup
Introducing an OptionError exception to be used by all xm subcommands
to signal an error in the arguments. "xm" will catch these and output
the appropriate error and usage message.
Detailed Changes:
main.py:
* Cleaned up imports and moved warning filter outside of
import block.
* Converted usage parameters and description to a python
dict rather than strings to enable better usage help
formatting.
* Removed unused list_label domain command.
* Added cmdHelp() prints out usage message for any command
* Added shortHelp() prints out the default help message when
xm is invoked with no arguments.
* Added longHelp() prints out long help message when invoked
with xm --help or xm help.
* Added extra optional paramter to getDomains() so we can
tell Xend not to poll devices. This will speed up xm list.
(PENDING changes to Xend itself.)
* Changed all references where 'dom' actually means 'domid'
to use the correct name.
* Changed 'xm list' header format to use printf formatting style.
* Renamed xm_subcommand to xm_importcommand so it is more
clear what it is doing (all xm commands are subcommands!)
* Moved cpu_make_map() inside xm_vcpu_pin as an anonymous func.
* Use OptionError whenever an invalid option is detected in xm.
* Added proper catch and error printing for XendError and
OptionErrors in main().
addlabel.py:
cfgbootpolicy.py:
dry-run.py:
dump-policy.py:
get-label.py:
labels.py:
loadpolicy.py:
makepolicy.py:
rmlabel.py:
resources.py:
* Replaced usage() with help() that is called from main.py
* Replaced usage() invokation with raising OptionError
opts.py:
* Added very simple wrap() function that behaves differently
to textwrap.wrap()
* Added OptionError()
* Replaced the string representation of Opt, Opts to output
a nicely formatted usage message.
* Changed class Opts itself will throw approriate OptionErrors.
* Changed set_bool to recognise 'y' and 'n' as valid input
create.py:
* Some whitespace and column width cleanup.
* throws OptionError if encounters option error.
migrate.py:
* Replace usage() message with the string representation of
gopts.
sysrq.py:
* Replace usage message with throwing OptionErrors
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 22 Sep 2006 10:33:03 +0000 (11:33 +0100)]
[HVM][VMX] Clean up and audit VMX uses of instruction-length
info field. Todo: use by mmio decoder needs to be removed.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Fri, 22 Sep 2006 08:12:00 +0000 (09:12 +0100)]
[HVM][VNC] Fix bug in the VNC copyrect implementation which crept in
with the update backoff patch.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Thu, 21 Sep 2006 18:51:10 +0000 (19:51 +0100)]
[XEN] Do not emulate user-mode updates to page tables.
Instead use as a hint that the page is no longer a page table.
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Thu, 21 Sep 2006 18:34:45 +0000 (19:34 +0100)]
Merge?
kfraser@localhost.localdomain [Thu, 21 Sep 2006 18:34:00 +0000 (19:34 +0100)]
[XEN] Fix domctl for changing VCPU affinity.
Now works for any VCPU, including the caller's VCPU.
By not synchronously pausing the affected VCPU we avoid
any risk of deadlock.
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Thu, 21 Sep 2006 18:33:51 +0000 (19:33 +0100)]
[qemu patches] Refresh.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Thu, 21 Sep 2006 18:33:07 +0000 (19:33 +0100)]
[qemu patches] Update patches for changeset 11562:
449dcaff2551.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Thu, 21 Sep 2006 18:28:35 +0000 (19:28 +0100)]
[qemu patches] Update patches for changeset 11561:
c742b2ae920c.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Thu, 21 Sep 2006 17:58:17 +0000 (18:58 +0100)]
[qemu patches] Update patches for changeset 11554:
39aaa54756db.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Steven Smith [Thu, 21 Sep 2006 17:29:48 +0000 (18:29 +0100)]
[HVM][VNC] Add a backoff feature to the vnc server, so that if it detects
that the display hasn't changed for a while it starts scanning more slowly.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Thu, 21 Sep 2006 16:56:14 +0000 (17:56 +0100)]
[HVM] Reduce VNC overhead, by (a) only scanning framebuffer when a client
is connected, and (b) fixing an overflow bug in the scanning code which
prevented the dirty bit from ever getting cleared.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Tim Deegan [Thu, 21 Sep 2006 14:04:29 +0000 (15:04 +0100)]
Merge
Tim Deegan [Thu, 21 Sep 2006 14:00:50 +0000 (15:00 +0100)]
[XEND] Don't prepend '/dev/' to any absolute path.
Check for '/' rather than '/dev/' when translating e.g. 'hda'->'/dev/hda'
Signed-off-by: Tim Deegan <tim.deegan@xensource.com>